package Object类;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: lenovo
 * Date: 2022-07-02
 * Time: 16:47
 */
class Person{
    @Override
    public String toString() {
        return "Person{}";
    }
}
class Student{

}
public class Test {
    private static void func(Object o){
//        String ret = o.toString();
//        System.out.println(ret);
        System.out.println(o);
    }
    public static void main(String[] args) {
        func(new Person());
        func(new Student());

    }
}
